export const buttonType = {
  1: '文本',
  2: '数字',
  16: '计数器',
  3: '金额',
  4: '电话',
  5: '邮箱',
  6: '单选',
  15: '多选',
  7: '图片',
  8: '视频',
  9: '音频',
  10: '附件',
  11: '时间',
  13: '外部链接',
  14: '表单附件',
  17: '子表单标题',
  19: '随机数',
  20: '子表单占位',
  21: '标签',
}
export const selectTypeList = [
  {
    key: 'select',
    value: '下拉',
  }, {
    key: 'check',
    value: '勾选',
  }, {
    key: 'switch',
    value: '开关',
  }, {
    key: 'search',
    value: '搜索确认',
  }, {
    key: 'selfSearch',
    value: '自定义搜索',
  }
]

export const checkTypeList = [
  {
    key: 1,
    value: '>'
  }, {
    key: 2,
    value: '<'
  }, {
    key: 3,
    value: '='
  }, {
    key: 4,
    value: '>='
  }, {
    key: 5,
    value: '<='
  }, {
    key: 6,
    value: '包含'
  }, {
    key: 7,
    value: '不为空'
  }, {
    key: 8,
    value: '为空'
  }, {
    key: 9,
    value: '改变'
  }, {
    key: 10,
    value: '!='
  }, {
    key: 11,
    value: '不包含'
  }
]

export const timeTypeMap = [
  {
    key: 'datetime',
    value: '日期时间'
  }, {
    key: 'year-month',
    value: '年月'
  }, {
    key: 'date',
    value: '日期'
  }, {
    key: 'time',
    value: '时间'
  }
]

// 地图类型
export const mapTypeList = [{
  key: 'baidu',
  value: '百度'
}, {
  key: 'Amap',
  value: '高德'
}]
// 上传方式
export const imageUploadMethodList = [{
  key: 'album',
  value: '相册',
}, {
  key: 'caram',
  value: '拍摄',
}]
// 处理方式
export const dealTypeList = [{
  key: 'watermark',
  value: '水印',
}, {
  key: 'shapeChange',
  value: '变形',
}]
  // 触发时机
export const triggerTimeList = [{
  key: 1,
  value: '改变',
}, {
  key: 2,
  value: '手工',
}]

export const effectResultList = [
  {
    key: 'hiddenAction',
    value: '表项隐藏'
  },
  {
    key: 'disabledAction',
    value: '表项禁用'
  },
  {
    key: 'dataAction',
    value: '触发数据源请求'
  },
  {
    key: 'nullAction',
    value: '清空'
  },
  {
    key: 'recordsNumAction',
    value: '赋值-记录总数'
  },
  {
    key: 'sumAction',
    value: '赋值-总和'
  },
  {
    key: 'recordsSumAction',
    value: '赋值-记录总和'
  },
  {
    key: 'numFontAction',
    value: '赋值-数字转大写'
  }, {
    key: 'requireAction',
    value: '必填'
  }, {
    key: 'apiCheckAction',
    value: 'api校验'
  },
]